﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Dao
{
    public class ScheduleJobSubscriptionLogic
    {
        public void AddScheduleJobSubscription(ScheduleJobSubscription subscription)
        {
            new ScheduleJobSubscriptionDao().AddScheduleJobSubscription(subscription);
        }
        public List<ScheduleJobSubscription> GetScheduleJobSubscriptionsByFilter(UserDefineQueryFilter filter)
        {
            return new ScheduleJobSubscriptionDao().GetScheduleJobSubscriptionsByFilter(filter);


        }
        public void CancleScheduleJobSubscription(string subscriptionId)
        {
            
        }
        public ScheduleJobSubscription GetScheduleJobSubscriptionById(string subscriptionId)
        {
            return new ScheduleJobSubscriptionDao().GetScheduleJobSubscriptionById(subscriptionId);
        }
        public void DeleteScheduleJobSubscription(string subscriptionId)
        {
            new ScheduleJobSubscriptionDao().DeleteScheduleJobSubscription(subscriptionId);
        }
    }
}
